package com.sky.service;

import com.sky.dto.OrdersPageQueryDTO;
import com.sky.dto.OrdersPaymentDTO;
import com.sky.dto.OrdersSubmitDTO;
import com.sky.result.PageResult;
import com.sky.vo.HistoryOrderVO;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

import java.io.IOException;

public interface UserOrderService {
    PageResult historyOrders(OrdersPageQueryDTO ordersPageQueryDTO);

    HistoryOrderVO orderDetail(Long id);

    OrderSubmitVO submit(OrdersSubmitDTO ordersSubmitDTO) throws IOException;

    void cancel(Long id);

    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO);
}
